angular.module("acceptance.service", [])
    .factory('AcceptanceService',['$http',function($http){
        var service = {};

        service.find = function (data) {
            return $http({
                method: 'GET',
                url: "/api/acceptance/find",
                params:data
            });
        };

        service.upload = function (data) {
            return $http({
                method: 'POST',
                url: "/api/acceptance/upload",
                data:data,
                headers: {'Content-Type':undefined},
                transformRequest: angular.identity
            });
        };

        service.download = function (data) {
            return $http({
                method: 'POST',
                url: "/api/acceptance/down",
                params:data
            });
        };


        return service;

    }]);